// 需要权限访问的完整路由表
// 获取权限后和该表匹配的则被加入到正式路由中。该表必须完整的包含工程页面
// path 页面跳转地址
// permission字段内容从后台获取，代表该页内部详细权限，以key:value形式存储

const asyncRouter = [{
        path: '/asyncRouter',
        component: r => require.ensure([], () => r(require('../page/layout/layout')), 'layout'),
        children: []
    },
    // 基础数据
    {
        path: '/baseInfo/post',
        meta: {
            permission: []
        },
        component: r => require.ensure([], () => r(require('../page/baseInfo/post')), 'baseInfo'),
        children: []
    },
    {
        path: '/baseInfo/system/user',
        meta: {
            permission: []
        },
        component: r => require.ensure([], () => r(require('../page/baseInfo/system/user')), 'baseInfo'),
        children: []
    },
    {
        path: '/baseInfo/system/password',
        meta: {
            permission: []
        },
        component: r => require.ensure([], () => r(require('../page//baseInfo/system/password')), 'baseInfo'),
        children: []
    },
    {
        path: '/baseInfo/branch',
        meta: {
            permission: []
        },
        component: r => require.ensure([], () => r(require('../page/baseInfo/branch')), 'baseInfo'),
        children: []
    },
    // 加班管理
    {
        path: '/overtime/manage',
        meta: {
            permission: []
        },
        component: r => require.ensure([], () => r(require('../page/overtime/manage')), 'income'),
        children: []
    },
    {
        path: '/overtime/summary',
        meta: {
            permission: []
        },
        component: r => require.ensure([], () => r(require('../page/overtime/summary')), 'income'),
        children: []
    },
    // 考核管理
    {
        path: '/assess/manage',
        meta: {
            permission: []
        },
        component: r => require.ensure([], () => r(require('../page/assess/manage')), 'income'),
        children: []
    },
    {
        path: '/assess/summary',
        meta: {
            permission: []
        },
        component: r => require.ensure([], () => r(require('../page/assess/summary')), 'income'),
        children: []
    }
]

export default asyncRouter